<template>
	<view>
		<!-- <view class="item" @click="click1">updateShareMenu</view> -->
		<button open-type="share">button</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},

		onShareAppMessage() {
			uni.updateShareMenu({
				success(res) {
					console.log("success", res);
				},
				fail(error) {
					console.log("fail", error);
				}

			})
			return {

				title: '分享',

				path: 'pages/index/index',

			}
		},

		methods: {
			click1() {

			}
		}
	}
</script>

<style>
	.item {
		margin-left: 30rpx;
		margin-right: 30rpx;
		height: 60rpx;
		border-radius: 30rpx;
		background-color: aliceblue;
		text-align: center;
		line-height: 60rpx;
	}
</style>